package com.example.springevent;

import org.springframework.context.ApplicationEvent;

/**
 * @author : yx-0176
 * @description
 * @date : 2021/7/9
 */
public class UserRegisterEvent extends ApplicationEvent {
    public String user;

    /**
     *
     * @param source 发生事件的对象
     * @param user 注册用户对象
     */
    public UserRegisterEvent(Object source,String user) {
        super(source);
        this.user = user;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }
}
